package com.zlm.huanxin.constants;

/**
 * @Author: duyufu
 * @Date: 2019/7/2 11:06
 */
public class HuanxinConstants {

    /**
     * 注册环信私钥
     */
    public static final String PRIVATE_KEY = "zhaolemo";
    /**
     * 环信账号下企业名
     */
    public static final String ORG_NAME = "1120190320055320";
    /**
     * 环信账号下应用名
     */
    public static final String APP_NAME = "zhaolm50273211";
    /**
     * 环信账号合伙人应用
     */
    public static final String APP_PARTNER_NAME = "zhaolemohehuoren";
    /**
     * 环信账号授予类型
     */
    public static final String GRANT_TYPE = "client_credentials";
    /**
     * 环信账号App的client_id
     */
    public static final String CLIENT_ID = "YXA6b7oG8ErWEemOPDe-CjOSrw";
    /**
     * 环信账号App的client_secret
     */
    public static final String CLIENT_SECRET = "YXA6sYCNRmwSl_ic4jvmIJm0TM2NgLQ";
    /**
     * 获取授权token Url
     */
    public static final String HX_GET_TOKEN = "http://a1.easemob.com/%s/%s/token";
    /**
     * 环信注册url
     */
    public static final String HX_USER_REG = "http://a1.easemob.com/%s/%s/users";
    /**
     * 环信获取单个用户
      */
    public static final String HX_GET_USER = "http://a1.easemob.com/%s/%s/users/%s";
    /**
     * 环信添加好友
     */
    public static final String HX_ADD_FRIEND = "http://a1.easemob.com/%s/%s/users/%s/contacts/users/%s";
    /**
     * 环信移除好友
     */
    public static final String HX_DELETE_FRIEND = "http://a1.easemob.com/%s/%s/users/%s/contacts/users/%s";
    /**
     * 环信获取好友列表
     */
    public static final String HX_GET_FRIEND_LIST = "http://a1.easemob.com/%s/%s/users/%s/contacts/users";
    /**
     * 环信强制下线
     */
    public static final String HX_DISCONNECT = "http://a1.easemob.com/%s/%s/users/%s/disconnect";
    /**
     * 环信获取加入群组
     */
    public static final String HX_GET_JOINED_GROUP = "http://a1.easemob.com/%s/%s/users/%s/joined_chatgroups";
    /**
     * 环信创建群组
     */
    public static final String HX_CREATE_GROUP = "http://a1.easemob.com/%s/%s/chatgroups";
    /**
     * 获取群组详情
     */
    public static final String HX_GET_GROUP_DETAIL = "http://a1.easemob.com/%s/%s/chatgroups/%s";
    /**
     * 修改群组详情
     */
    public static final String HX_UPDATE_GROUP = "http://a1.easemob.com/%s/%s/chatgroups/%s";
    /**
     * 删除群组
     */
    public static final String HX_DELETE_GROUP = "http://a1.easemob.com/%s/%s/chatgroups/%s";
    /**
     * 删除单个群组成员
      */
    public static final String HX_DELETE_SINGLE_GROUP_MEMBER = "http://a1.easemob.com/%s/%s/chatgroups/%s/users/%s";
    /**
     * 分页获取群组成员
     */
    public static final String HX_GET_GROUP_MEMBER = "http://a1.easemob.com/%s/%s/chatgroups/%s/users?pagenum" +
            "=%s&pagesize=%s";
    /**
     * 批量添加群组成员
     */
    public static final String HX_ADD_GROUP_MEMBER = "http://a1.easemob.com/%s/%s/chatgroups/%s/users";
    /**
     * 批量删除群组成员
     */
    public static final String HX_DELETE_GROUP_MEMBER = "http://a1.easemob.com/%s/%s/chatgroups/%s/users/%s";
    /**
     * 获取管理员
     */
    public static final String HX_GET_GROUP_ADMIN = "http://a1.easemob.com/%s/%s/chatgroups/%s/admin";
    /**
     * 添加管理员
     */
    public static final String HX_ADD_GROUP_ADMIN = "http://a1.easemob.com/%s/%s/chatgroups/%s/admin";
    /**
     * 移除管理员
     */
    public static final String HX_DELETE_GROUP_ADMIN = "http://a1.easemob.com/%s/%s/chatgroups/%s/admin/%s";
    /**
     * 转让群组
     */
    public static final String HX_TRANSFER_GROUP = "http://a1.easemob.com/%s/%s/chatgroups/%s";
}
